import http from '@/common/utils/request.js'

export const common = {
	// 获取设备信息
	findClientInfo(data){
		return http.post('/interface/client/findClientInfo/', data, {custom:{}})
	},
	//获取微信openId
	getOpenId(data){
		return http.post('/common/wx/getOpenId/', data, {custom:{}})
	},
	//发送验证码
	sendSms(data){
		return http.post('/common/ali/validateCode/sendSms/', data, {custom:{}})
	},
	//post方法
	operateActionPost(url, data){
		return http.post(url, data, {custom:{}})
	},
	//get方法
	operateActionGet(url, data){
		return http.get(url, {params:data, custom:{}})
	},
	//生成二维码
	createCode(data){
		return http.post('/common/third/createCode/', data, {custom:{}})
	},
}